#! /usr/bin/python
# coding: utf-8

from Tkinter import *

root = Tk()

def printEventInfo(event):
    print 'event.time= ', event.time
    print 'event.type= ', event.type
    print 'event.WidgetId= ', event.widget
    print 'event.KeySymbol= ', event.keysym
    
b = Button(root, text = 'Information')
b.bind('<Return>', printEventInfo)
b.pack()
b.focus_set()

root.mainloop()
